home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / udev / rules.d / 75-cd-aliases-generator.rules < prev    next >
Text File  |  2009-11-03  |  462b  |  10 lines

  1. # these rules generate rules for the /dev/{cdrom,dvd,...} symlinks
  2.  
  3. # the "path" of usb/ieee1394 devices changes frequently, use "id"
  4. ACTION=="add", SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", \
  5.   PROGRAM="write_cd_rules by-id", SYMLINK+="%c", GOTO="persistent_cd_end"
  6.  
  7. ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules", SYMLINK+="%c"
  8.  
  9. LABEL="persistent_cd_end"
  10.